package com.xyd.bean;

import java.util.Date;

public class Order {
    private Integer id;

    private Integer userid;

    private String username;

    private String useraddress;

    private Date createtime;

    private Double cost;

    private Integer status;

    private Integer type;

    public Order(Integer id, Integer userid, String username, String useraddress, Date createtime, Double cost, Integer status, Integer type) {
        this.id = id;
        this.userid = userid;
        this.username = username;
        this.useraddress = useraddress;
        this.createtime = createtime;
        this.cost = cost;
        this.status = status;
        this.type = type;
    }

    public Order() {
    }

    public Order(Integer userid, String username, String useraddress, Double cost, Integer status) {
        this.userid = userid;
        this.username = username;
        this.useraddress = useraddress;
        this.cost = cost;
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getUseraddress() {
        return useraddress;
    }

    public void setUseraddress(String useraddress) {
        this.useraddress = useraddress == null ? null : useraddress.trim();
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Double getCost() {
        return cost;
    }

    public void setCost(Double cost) {
        this.cost = cost;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
}